import {AES_KEY} from '@/constant/Config.js';
const aesToPassword = (string, key = AES_KEY) => {
	// #ifdef MP
	return ''
	// #endif
	// #ifndef MP
	const CryptoJS = require('crypto-js');
	return CryptoJS.AES.encrypt(String(string), CryptoJS.enc.Utf8.parse(key), {
		mode: CryptoJS.mode.ECB
	}).toString();
	// #endif
	
}

export default {
	aesToPassword
}
